package com.yunkeji.api.invited.service;

import com.yunkeji.api.invited.bo.BindBo;
import com.yunkeji.api.invited.vo.InvitedCount;
import com.yunkeji.api.invited.vo.InvitedVo;
import com.yunkeji.api.invited.vo.QueryDownLoad;
import com.yunkeji.common.core.domain.PageQuery;
import com.yunkeji.common.core.page.TableDataInfo;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;

public interface InvitedService {
    /**
     * 邀请绑定
     *
     * @author 老张
     * @param baseId
     */
    QueryDownLoad bindPid(HttpServletRequest httpServletRequest);

    /**
     * 邀请统计
     *
     * @author 老张
     * @return
     */
    InvitedCount invitedCount();

    /**
     * 邀请好有记录分页
     *
     * @author 老张
     * @return
     */
    TableDataInfo<InvitedVo> pageInvited(PageQuery pageQuery);

    void toBind(BindBo bindBo);

    void inviteRewardFirst(Long traceId, BigDecimal price, Long userId);

    void inviteRewardRecharge(Long traceId, BigDecimal price, Long userId);
}
